package lamma.lab.job;

import static java.lang.annotation.RetentionPolicy.RUNTIME;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

/**
 * @author maxcellent
 *
 */
@Deprecated
@Target({ElementType.FIELD})
@Retention(RUNTIME)
public @interface FeedBy {
	
	/**
	 * @author maxcellent
	 *
	 */
	public static class Resolver {
		
		/**
		 * TODO : expression language to be supported
		 * 
		 * @param param
		 * @return
		 */
		public static String [] resolveFullPath(String param) {
			if (param == null || param.isEmpty()) {
				return new String[0];
			} else {
				return param.split("\\.");
			}
		}
	}
	
	Class<?> job();
	
	String [] params();
		
	String result();
}
